home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat2 / dpathconf.nr < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.9 KB  |  67 lines

  1.  
  2.  
  3.  
  4. Dpathconf(2)               Oct. 1, 1991              Dpathconf(2)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        Dpathconf  -  get information about file system configura-
  9.        tion
  10.  
  11. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  12.        LONG Dpathconf( char *name, WORD mode );
  13.  
  14. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  15.        _✓D_✓p_✓a_✓t_✓h_✓c_✓o_✓n_✓f returns  information  about  various  limits  or
  16.        capabilities  of the file system containing the file named
  17.        _✓n_✓a_✓m_✓e.  The variable _✓m_✓o_✓d_✓e controls which limit or  capabil-
  18.        ity is being queried, as follows:
  19.               mode    Value Returned
  20.  
  21.             -1   return max. legal value for n in Dpathconf(n)
  22.             0    return internal limit on the number of open files
  23.             1    return max. number of links to a file
  24.             2    return max. length of a full path name
  25.             3    return max. length of an individual file name
  26.             4    return number of bytes that can be written atomically
  27.             5    return information about file name truncation
  28.        If  any  of these items are unlimited, then 0x7fffffffL is
  29.        returned.
  30.  
  31.        For mode 5, return information about file name truncation,
  32.        the returned value has the following meaning:
  33.  
  34.        0      File names are never truncated; if the file name in
  35.               any system call affecting  this  directory  exceeds
  36.               the  maximum  length (returned by mode 3), then the
  37.               error value ERANGE is  returned  from  that  system
  38.               call.
  39.  
  40.        1      File names are automatically truncated to the maxi-
  41.               mum length.
  42.  
  43.        2      File names are truncated according  to  DOS  rules,
  44.               i.e. to a maximum 8 character base name and a maxi-
  45.               mum 3 character extension.
  46.  
  47. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  48.        _✓S_✓y_✓s_✓c_✓o_✓n_✓f(2)
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. Version 0.9          MiNT Programmer's Manual                   1
  65.  
  66.  
  67.